# Coding = utf-8
# Author: Naomi-Lau (qq:843047623)
# File: zy_day06_Naomi.py
# Time: 2018/1/27 09:56

# 1.用while和for两种循环求计算1+3+5.....+45+47+49的值
# j = 0
# for i in range(1,26):
#       i =  2*i - 1
#       j += i
# print(j,i)

# result = 0
# num = 49
# while num > 0:
#     result += num
#     num -= 2
# print(result)







